package com.study.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.model.mdao.KindMapper;
import com.study.model.pojo.Kind;

@Service
public class KindService {
	@Autowired
	KindMapper kMapper;
	
	//查询所以产品种类
	public List<Kind> findAll(){
		return kMapper.findAll();
	}
	
	//添加产品种类
	public void addKind(Kind kind) {
		kMapper.addKind(kind);
	}
	
	//删除产品种类
	public void delKind(String kinId) {
		kMapper.delKind(kinId);
	}
}
